package dto

import "time"

type CreateUserRequest struct {
	Account  string `json:"account" form:"account" validate:"required" name:"账号"`
	Password string `json:"password" form:"password" validate:"required" name:"密码"`
}

type LoginUserRequest struct {
	Account  string `json:"account" form:"account" validate:"required" name:"账号"`
	Password string `json:"password" form:"password" validate:"required" name:"密码"`
}

type LoginUserResponse struct {
	Account string `json:"account"`
	ID      int    `json:"id"`
	Token   string `json:"token"`
}

type ListUserResponse struct {
	ID        int       `json:"id"`
	Account   string    `json:"account"`
	CreatedAt time.Time `json:"created_at"`
}
